home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / streaming / qtfiletransfer / qtfiletransfer.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.1 KB  |  49 lines

  1. //////////
  2. //
  3. //    File:        QTFileTransfer.h
  4. //
  5. //    Contains:    Sample code for transferring a file asynchronously from a web server.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         11/11/98    rtm        first file
  14. //     
  15. //////////
  16.  
  17. #include <FixMath.h>
  18. #include <Movies.h>
  19. #include <QuickTimeComponents.h>
  20. #include <Script.h>
  21.  
  22. #include <string.h>
  23.  
  24. #define TESTING_FTP_TRANSFER    1            // compiler flag for our test shell
  25.  
  26. //////////
  27. //
  28. // constants
  29. //
  30. //////////
  31.  
  32. #define kDataBufferSize            1024*10        // the size, in bytes, of our data buffer
  33.  
  34. // type and creator for the transferred file
  35. #define kTransFileType            FOUR_CHAR_CODE('TEXT')
  36. #define kTransFileCreator        FOUR_CHAR_CODE('CWIE')
  37.  
  38.  
  39. //////////
  40. //
  41. // function prototypes
  42. //
  43. //////////
  44.  
  45. OSErr                            QTFileTrans_CopyRemoteFileToLocalFile (char *theURL, FSSpecPtr theFSSpecPtr);
  46. void                            QTFileTrans_ReadDataCompletionProc (Ptr theRequest, long theRefCon, OSErr theErr);
  47. void                            QTFileTrans_WriteDataCompletionProc (Ptr theRequest, long theRefCon, OSErr theErr);
  48. void                            QTFileTrans_CloseDownHandlers (void);
  49.